package cn.edu.cqut.mdm.initialize;

import java.util.HashSet;
import java.util.Set;

import cn.edu.cqut.mdm.util.ClassPathScanner;


public class PackageScanner {
	private String[] base;
	public PackageScanner(String... base){
		this.base = base;
	}
	public Set<Class<?>> doScan(){
		Set<Class<?>> classes = new HashSet<Class<?>>();
		for(String basePath : base) {
			classes.addAll(new ClassPathScanner().getPackageAllClasses(basePath, true));
		}
		return classes;
	}
}
